using System;
using System.Collections.Generic;

namespace CosyTrade.StoreManagement.UI.ExportUI
{
    public partial class FrmExportProperty : DevExpress.XtraEditors.XtraForm
    {
        public FrmExportProperty()
        {
            InitializeComponent();
        }

        private ExportBill newExportBill;
        private bool isNew;
        private readonly Dictionary<Guid, BillState> billStates = new Dictionary<Guid, BillState>();
        private IProductManager productMgr;

        #region public Property

        public ExportBill NewExportBill
        {
            get { return newExportBill; }
            set { newExportBill = value; }
        }
        public bool IsNew
        {
            get { return isNew; }
            set { isNew = value; }
        }
        public Dictionary<Guid, BillState> BillStates
        {
            get { return billStates; }
        }

        public IProductManager ProductMgr
        {
            get { return productMgr; }
            set { productMgr = value; }
        }

        #endregion

        private void Initialize()
        {
            productSelectControl1.productMgr = productMgr;
            productSelectControl1.Initialize();

        }

        private void FrmExportProperty_Load(object sender, EventArgs e)
        {
            Initialize();
        }
    }
}